package com.xbongbong.paas.log.model;

import com.xbongbong.paas.log.entity.LoginLogEntity;
import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.paas.toolbox.wrap.IModel;

import java.util.List;
import java.util.Map;

/**
 * 登录日志相关业务
 * @author kaka
 * @date 2019/1/21 13:50
 * @since v1.0
 * @version v1.0
 */
public interface LoginLogModel extends IModel<LoginLogEntity> {

    /**
     * 获取用户登录人数
     */
    public Integer getUserLoginCount(String corpid,Integer startTime, Integer entTime);

    public List<LoginLogEntity> getUserLogin(String corpid, Integer startTime, Integer entTime);

    /**
     * 重载 查询条件加入是否导出入口
     * @param param
     * @param isExport 是否导出
     * @return
     * @throws XbbException
     */
    List findEntitys(Map<String, Object> param,boolean isExport) throws XbbException;
}
